<?php
/**
 * 电子期刊
 */
class Staticizer_News_Index_Ejournal extends Staticizer
{
    public function Build($param=NULL)
    {
        #定义标量
        $ejournal=array('Title'=>NULL,'Location'=>NULL);

        #获取数据
        $data=DB::GetRows('select ID,Title,Location from Ejournal order by Datetime desc limit 0,1');
        $ejournal['Title']=@$data[0]['Title'];
        $ejournal['Location']=@$data[0]['Location'];        
        
        #渲染模板
        View::Assign('Ejournal',$ejournal);
        $this->Save('news/index/ejournal.html',View::Fetch('news/index/ejournal.tpl'));
    }
}
?>